import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/model/inline_object2.dart';

InlineObject2 $InlineObject2FromJson(Map<String, dynamic> json) {
  final InlineObject2 inlineObject2 = InlineObject2();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    inlineObject2.id = id;
  }
  return inlineObject2;
}

Map<String, dynamic> $InlineObject2ToJson(InlineObject2 entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  return data;
}

extension InlineObject2Extension on InlineObject2 {
  InlineObject2 copyWith({
    String? id,
  }) {
    return InlineObject2()
      ..id = id ?? this.id;
  }
}